package Com.amit.Thread;

public class Lab5  extends Thread{
	
	@Override
	public void run() {

		for(int i=1;i<=5;i++)
		{
			try
			{
			Thread.sleep(500);
			
			}
			catch (Exception e) {
			System.out.println(e);
			}
			
			System.out.println(i);
		}
	}

	public static void main(String[] args) {
		
		Lab5 l1=new Lab5();
		Lab5 l2=new Lab5();
		
		l1.run();
		l2.run();
		
		
	}

}
